<?php include 'site_header.php'; ?>
<?php include 'site_menu.php'; ?>

<?
//echo gmdate("Y-m-d H:i:s", time()+60*60*7);
?>

<?php

?>
<link href="<?php echo base_url();?>assets/css/screen.css" rel="stylesheet" type="text/css" />
<div id="rightPan">
  	<!--<h1>Sistem Online Pendaftaran Taruna Baru<br /><p>Sekolan Tinggi Meteorologi, Klimatologi, dan Geofisika - Jakarta</p> </h1>-->
	<h1><p></p> </h1>
	<div id="ambil">
	

		<div class="wrapper">
 			 	<div class="largeCol">
	 			 	<div class="innerpage_title_center" style='margin-top: -70px;margin-left:-10px;'>
							<!--<h2>No. Pendaftaran : 1234</h2> -->
							<!--	<h1>No. Pendaftaran : {$i.no_pendaftaran}</h1> -->
					</div>
				</div>
								<style>
								   label {
								    display:inline-block;
								    width:170px;
										padding:5px 0 5px 0;
								   }
								</style>
				
		
		<!--<div class="colx3-left1">-->
			<form id="form_berita" class="form columns" action="{$site.site}site/pendaftaranDetail/" method="POST" enctype="multipart/form-data">						
			<!--<a href="{$site.site}site/berita_detail/{$i.contentID}"><h2>{$i.title}</h2></a>-->

				<?php
					if($row['foto'] == '')
					{
						$row['foto'] = 'assets/images/foto_calon_taruna/ori.jpg';
					}
				?>
			
				<img src="<?php echo base_url().$row['foto'];?>" height="210px" width="170px" class="img-frame left" alt="<?php echo base_url().'assets/images/foto_calon_taruna/ori.jpg';?>" title="<?php echo $row['nama'];?>" >
				<label>Nama Calon Taruna</label>
				<?php echo $row['nama'];?><br/>
				
				<label>Nomor Pembayaran</label>
				<?php echo $row['BILLING_NO'];?><br/>
				
				<label>Tempat / Tgl Lahir</label>
				<?php echo $row['tempat_lahir']. ", ". $row['tgl_lahir'];?><br/>
				
				<label>Jenis Kelamin</label>
				<?php
				if($row['jenis_kelamin'] > 0)
				{
					echo "Perempuan";
				}
				else
				{
					echo "Laki-laki";
				}
				?><br/>

				<label>Tinggi Badan</label>
						<?php echo $row['tinggi_badan']." cm";?><br/>
<!--				
				<label>Agama</label>
						Islam<br/><br/>
		
				<label>Propinsi Asal SMTA</label>
						Jakarta<br/>
				
				<label>Tahun Lulus SMTA</label>
						2008<br/>

				<label>Jenis Asal SMTA</label>
						SMA<br/>

				<label>Jurusan SMTA</label>
						IPA<br/>
--> 
				<label>Pilihan Jurusan</label>
						<?php echo $row['jurusanID'];?><br/>
<!--
				<label>Pilihan Lokasi Tes</label>
						<?php //echo $row['lokasiID'];?><br/>
-->						
<!--			
				<label>&nbsp;</label>
		
				<input type="text"  size="10" value="Matematika" class="input-small1"; readonly; disabled='true'"/> 
				<input type="text"  size="10" value="Fisika" class="input-small1"; readonly; disabled='true'"/> 
				<input type="text"  size="10" value="Inggris" class="input-small1"; readonly; disabled='true'"/> 

				<br/>
				
<!--	
				<label>Nilai Semester 4</label>
		
				<input id="mat_4"  name="mat_4" type="text"  value='{$i.mat_4}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
				<input id="fisika_4" name="fisika_4" type="text"  value='{$i.fisika_4}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
				<input id="inggris_4" name="inggris_4" type="text"  value='{$i.inggris_4}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/>
				
				<br/>
			
				<!--nilai semester 5-->
<!--
				<label>Nilai Semester 5</label>
					<input id="mat_5"  name="mat_5" type="text"  value='{$i.mat_5}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
					<input id="fisika_5" name="fisika_5" type="text"  value='{$i.fisika_5}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
					<input id="inggris_5" name="inggris_5" type="text"  value='{$i.inggris_5}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
				<br/>
			
				<!--nilai semester 6-->
<!--
				<label>Nilai Semester 6</label>
					<input id="mat_6" name="mat_6" type="text"  value='{$i.mat_6}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
					<input id="fisika_6" name="fisika_6" type="text"  value='{$i.fisika_6}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
					<input id="inggris_6" name="inggris_6" type="text"  value='{$i.inggris_6}' size="10" maxlength="3" class="input-small1" class="mandatory" disabled='true'/> 
				<br/>
			
				<label>Email</label>
					ipoeloize@gmail.com
				<br/>
-->
			
				<label>Alamat</label>
					<?php echo $row['alamat'];?>
				
				<br/>
				

<!--				
				<label>Kodepos</label>
					12430
				<br/>
-->
				
				<label>Telepon</label>
					<?php echo $row['telepon'];?>
				<br/>
				<p class="blog-footer">
						Tanggal Terdaftar: <?php echo date("j-M-Y H:i", strtotime( $row['register_date'] ));?>
				</p>
						<!--		
								<table idcellspacing="0" cellpadding="0" border="0" width="100%" class="table" summary="Table summary">
										<caption>TEST AKADEMIK : SENIN, 14 JUNI 2010</caption>
										
										<thead>
											<tr>
												<th scope="col"></th>
												<th scope="col">WIB</th>
												<th scope="col">WITA</th>
												<th scope="col">WIT</th>
											</tr>
										</thead>
										
											<tbody>
												<tr>
													<th scope="row">Test Potensi Akademik</th>
													<td>08.00</td>
													<td>09.00</td>
													<td>10.00</td>
												</tr>
												
												<tr>
													<th scope="row">Istirahat</th>
													<td>10.30</td>
													<td>11.30</td>
													<td>12.30</td>
												</tr>
												
												<tr>
													<th scope="row">Test Bakat Skolastik</th>
													<td>11.30</td>
													<td>12.30</td>
													<td>13.30</td>
												</tr>
											</tbody>
								</table>	
	-->						
				<label style="margin-left:300px; padding:0; width:230px;">
							<!--
							<button id="btnsave" value="save" class="button altbutton" type="submit"/>Print Detail</button>
							-->
<!--							<a class="button" href="#" onclick="PrintElem('#formulir-ujian')" >Cetak Tanda Peserta</a>-->
		<a class="button" href="<?php echo '/ajax/printPdf/'.$row["no_pendaftaran"];?>">Download</a> 
				</label>

	<!--
			<label style="margin-left:5px; padding:0; width:80px;">
				<button id="back" value="back" class="button altbutton" type="button"/>Back</button>
					<a class="button" href="{$site.site}ajax/printPdf/{$i.no_pendaftaran}">Print Detail</a>
			</label>
	-->
	
		</form>
	<!--</div>-->
		
		<div id="formulir-ujian" style="display:none;">
        <!--<table width="501" border="0">-->
        <table width="650" border="0">
              <tr>
                <td colspan="6" align="center">KARTU TANDA PESERTA PTB-AMG-2014</td>
                <td colspan="2">&nbsp;</td>
                <td width="220" align="center">untuk calon taruna</td>
              </tr>
              <tr>
                <td width="158">Nomor</td>
                <td colspan="3">: <?php echo $row['no_pendaftaran'];?></td>
                <td width="1">&nbsp;</td>
                <td width="113">Alamat :</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Nama Calon</td>
                <td colspan="3">: <?php echo $row['nama'];?></td>
                <td>&nbsp;</td>
                <td rowspan="2"><?php echo $row['alamat'];?></td>
                <td colspan="2">&nbsp;</td>
                <td rowspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td width="34">&nbsp;</td>
                <td width="39">&nbsp;</td>
                <td width="44">&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td colspan="3" align="center">Tanda Tangan Calon</td>
                <td>&nbsp;</td>
                <td>Kode Pos</td>
                <td colspan="2">&nbsp;</td>
                <td>: <?php echo $row['kodepos'];?></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>Telpon</td>
                <td colspan="2">&nbsp;</td>
                <td>: <?php echo $row['telepon'];?></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td colspan="3" align="center">( .................. )</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN DASAR</td>
                <td>&nbsp;</td>
                <td rowspan="6"><img width="113" height="137" src="<?php echo base_url().$row['foto'];?>" ></td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <!--
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              -->
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">28 April s/d 9 Mei 2014. Lihat di Ketentuan Pendaftaran butir E.2</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00 WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00 WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00 WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN AKADEMIK</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">Selasa, 3 Juni 2014</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00 WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00 WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00 WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <!--
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">Istirahat</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">11.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">12.30</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              
              <tr>
                <td style="outline: thin solid black;" height="9" bgcolor="#999999">Tes Kemampuan Akademik, Selasa 27 Mei 2014</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00 WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00 WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00 WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              -->
   
              <tr>
                <td height="10">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="6" rowspan="2">Perhatian : Tanda peserta harus dibawa pada waktu ujian dan pada waktu daftar ulang. Harap menggunakan pensil 2B untuk test.</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">Tanda Tangan Panitia</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="4">Tanggal Terdaftar : <?php echo date('j-F-Y', strtotime($row['register_date']));?></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">( .................. )</td>
              </tr>
        </table>
        <table width="650" border="0">
          <tr>
            <td colspan="6" align="center">KARTU TANDA PESERTA PTB-AMG-2014</td>
            <td colspan="2">&nbsp;</td>
            <td width="220" align="center">untuk arsip panitia</td>
          </tr>
          <tr>
            <td width="158">Nomor</td>
            <td colspan="3">: <?php echo $row['no_pendaftaran'];?></td>
            <td width="1">&nbsp;</td>
            <td width="113">Alamat :</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>Nama Calon</td>
            <td colspan="3">: <?php echo $row['nama'];?></td>
            <td>&nbsp;</td>
            <td rowspan="2"><?php echo $row['alamat'];?></td>
            <td colspan="2">&nbsp;</td>
            <td rowspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td width="34">&nbsp;</td>
            <td width="39">&nbsp;</td>
            <td width="44">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td colspan="3" align="center">Tanda Tangan Calon</td>
            <td>&nbsp;</td>
            <td>Kode Pos</td>
            <td colspan="2">&nbsp;</td>
            <td>: <?php echo $row['kodepos'];?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>Telpon</td>
            <td colspan="2">&nbsp;</td>
            <td>: <?php echo $row['telepon'];?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td colspan="3" align="center">( .................. )</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN DASAR</td>
                <td>&nbsp;</td>
                <td rowspan="6"><img width="113" height="137" src="<?php echo base_url().$row['foto'];?>" ></td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <!--
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              -->
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">28 April s/d 9 Mei 2014, 28 April s/d 9 Mei 2014. Lihat di Ketentuan Pendaftaran butir E.2</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00 WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00 WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00 WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN AKADEMIK</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">Selasa, 27 Mei 2014</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00 WIB</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00 WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00 WIT</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
          <tr>
            <td height="10">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="6" rowspan="2">Perhatian : Tanda peserta harus dibawa pada waktu ujian dan pada waktu daftar ulang. Test Akademik menggunakan pensil 2B.</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">Tanda Tangan Panitia</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="4">Tanggal Terdaftar : <?php echo date('j-F-Y', strtotime($row['register_date']));?></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">( .................. )</td>
          </tr>
        </table>
		</div>
	
			</div><!-- .quick-link -->
		</div><!-- .content -->
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$('#back').click( function (e) {
		top.location.href = "{$data.back}";
	});
	
});
</script>

<script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data)
    {
        var mywindow = window.open('', 'new div', 'height=400,width=600');
        mywindow.document.write('<html><head><title>Tanda Peserta</title>');
        /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.print();
        mywindow.close();

        return true;
    }
</script>
	  		</div>
		</div>

<?php include 'site_footer.php'; ?>